<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
						<input id="producerId" th:value="${producer.producerId}" name="producerId" type="hidden">
							<input id="areaCode" name="areaCode" type="hidden">
							<input id="areaName" name="areaName" type="hidden">
							<input id="provinceCode" name="province" type="hidden"
							th:value="${producer.province}">
							<input id="cityCode" name="cityCode" type="hidden"
							th:value="${producer.city}">
							<input id="villageCode" name="villageCode" type="hidden"
							th:value="${producer.village}">
							<div class="form-group">
								<label class="col-sm-3 control-label">药品厂家名称：</label>
								<div class="col-sm-8">
									<input id="producerName" th:value="${producer.producerName}" name="producerName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">法定代表人姓名：</label>
								<div class="col-sm-8">
									<input id="legalPersonName" th:value="${producer.legalPersonName}" name="legalPersonName" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">身份证号：</label>
								<div class="col-sm-8">
									<input id="legalPersonId" th:value="${producer.legalPersonId}" name="legalPersonId" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">信用代码：</label>
								<div class="col-sm-8">
									<input id="creditCode" th:value="${producer.creditCode}" name="creditCode" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">注册时间：</label>
								<div class="col-sm-8">
									<input id="regDate" th:value="${producer.regDate}" name="regDate" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">注册资金：</label>
								<div class="col-sm-8">
									<input id="regCapital" th:value="${producer.regCapital}" name="regCapital" class="form-control"
										type="number">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">省：</label>
								<div class="col-sm-8">
									<select class="form-control" name="province" id="Province">
                                    <option> 请选择 </option>
                                    </select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">市：</label>
								<div class="col-sm-8">
									<select class="form-control" name="city" id="City">
                                    <option> 请选择 </option>
                                    </select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">县/区：</label>
								<div class="col-sm-8">
									<select class="form-control" name="village" id="Village">
                                    <option> 请选择 </option>
                                    </select>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">电话：</label>
								<div class="col-sm-8">
									<input id="phone" th:value="${producer.phone}" name="phone" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">银行帐号：</label>
								<div class="col-sm-8">
									<input id="account" th:value="${producer.account}" name="account" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">开户行：</label>
								<div class="col-sm-8">
									<input id="bank" th:value="${producer.bank}" name="bank" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">地址：</label>
								<div class="col-sm-8">
									<input id="address" th:value="${producer.address}" name="address" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="remarks" th:value="${producer.remarks}" name="remarks" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<input id="content" th:value="${producer.introduction}" name="introduction" type="hidden"> <label
									class="col-sm-1 control-label">简介：</label>
								<div class="col-sm-11">
									<div class="ibox-content no-padding">
										<div id="content_sn" class="summernote"></div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">状态:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{producer.flag}" name="flag" value="1" /> 启用
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{producer.flag}" name="flag" value="0" /> 注销
									</label>
								</div>
							</div>
							
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<input id="submit" class="btn btn-primary" name="submit" type="submit" value="提交" >
								</div>
							</div>
					</form>
				</div>
				</div>
			</div>
		</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/drugproducer/drugproducer/edit.js"">
	</script>
	<script src="/js/plugins/laydate/laydate.js"></script>
	<script src="/js/plugins/suggest/bootstrap-suggest.min.js"></script>
</body>
<script>
laydate.render({
  elem: '#regDate', //指定元素
  istoday: true,
  fixed: false,
  festival: true,
});

/* $(function() {
    $("#userName").bsSuggest({
        url: '/sys/drugProducer/getProducerName?d='+new Date().getTime(),
		//d='+new Date().getTime()主要是为了让每次输入的值都及时加载,不用也行
        /*effectiveFields: ["userName", "shortAccount"],
        searchFields: [ "shortAccount"],*/
/*        data: {
        	userName: $("#userName").val()
        }, */
  /*       effectiveFieldsAlias:{userName: "分类名称名称"},//有效字段别名
        allowNoKeyword: false,           // 是否允许无关键字时请求数据
        ignorecase: true,//忽略大小写 
        showHeader: false,//显示 header
        showBtn: false,     //不显示下拉按钮
        delayUntilKeyup: true, //获取数据的方式为 firstByUrl 时，延迟到有输入/获取到焦点时才请求数据
        idField: "userName",
        keyField: "userName"
    }).on('onDataRequestSuccess', function (e, result) {
        console.log('onDataRequestSuccess: ', result);
    }).on('onSetSelectValue', function (e, keyword, data) {
        console.log('onSetSelectValue: ', keyword, data);
    }).on('onUnsetSelectValue', function () {
        console.log("onUnsetSelectValue");
    });
});  */

</script>
</html>
